<template>
    <div class="yz_operational_guideline_container">
        <div class="container">
            <header class="yzc_header">如何关闭有赞的自定义积分规则和订单累积成长值规则？</header>
            <div class="yz_content_text">
                <div class="yz_content_text_line" style="margin-bottom: 18px">
                    <div class="circle"></div>
                    <div class="text">1、点击 <span @click="handleOpenYzDashboard">有赞工作台</span></div>
                </div>
                <div class="yz_content_text_line">
                    <div class="circle"></div>
                    <div class="text">
                        2、进入【客户】-【积分权益】，将【自定义积分规则】全部禁用或清空。如下图所示：
                    </div>
                </div>
            </div>
            <div class="yz_content_image">
                <img src="https://static.scrm.keyid.cn/assets/images/web-pc/yz_guide_member_pass1.png" />
            </div>
            <div class="yz_content_text">
                <div class="yz_content_text_line">
                    <div class="circle"></div>
                    <div class="text">3、进入【客户】-【会员等级】-【成长值规则】</div>
                </div>
            </div>
            <div class="yz_content_image">
                <img src="https://static.scrm.keyid.cn/assets/images/web-pc/yz_guide_member_pass2.png" />
            </div>
            <div class="yz_content_text">
                <div class="yz_content_text_line">
                    <div class="circle"></div>
                    <div class="text">4、将【购物任务】全部禁用</div>
                </div>
            </div>
            <div class="yz_content_image">
                <img src="https://static.scrm.keyid.cn/assets/images/web-pc/yz_guide_member_pass3.png" />
            </div>
        </div>
    </div>
</template>

<script setup lang="ts">
/**
 * 打开有赞工作台
 */
const handleOpenYzDashboard = () => {
    window.open(`https://www.youzan.com/v4/shop/to-dashboard`);
};
</script>

<style lang="scss" scoped>
.yz_operational_guideline_container {
    width: 100%;
    height: 100%;
    .container {
        height: 100%;
        max-width: 1000px;
        margin: 0 auto;
        background: #ffffff;
        box-shadow: 0px 4px 4px 0px rgba(240, 240, 240, 0.5);
        border-radius: 1px;
        border: 1px solid #eaeaea;
        padding: 0 24px;
        box-sizing: border-box;
        overflow-y: auto;
        .yzc_header {
            height: 53px;
            width: 100%;
            font-size: 18px;
            font-family: PingFangSC-Medium, PingFang SC;
            font-weight: 500;
            color: #33302d;
            line-height: 53px;
            border-bottom: 1px solid #eaeaea;
        }
        .yz_content_text {
            background: #fffaf9;
            width: 100%;
            box-sizing: border-box;
            padding: 12px 16px;
            font-size: 16px;
            font-weight: 400;
            font-family: PingFangSC-Regular, PingFang SC;
            margin-top: 24px;
            display: flex;
            flex-direction: column;
            justify-content: space-around;
            .yz_content_text_line {
                display: flex;
                align-items: center;
                span {
                    color: #ff6b00;
                    cursor: pointer;
                }
            }
            .circle {
                width: 8px;
                height: 8px;
                background: #ff6b00;
                border-radius: 50%;
                margin-right: 10px;
            }
        }

        .yz_content_image {
            width: 100%;
            margin-top: 16px;
            img {
                max-width: 950px;
            }
        }
    }
}
</style>
